import time
import unittest
from selenium import webdriver
from PO.Page.login import Page
from PO.MyTools.mytools import Tools
class TestCase(unittest.TestCase):
    def setUp(self) -> None:
        Tools().log_set()
        self.driver = webdriver.Edge()
        self.driver.maximize_window()

    def tearDown(self) -> None:
        time.sleep(10)
        self.driver.quit()
    def test_mine_01(self):
        po = Page(self.driver)
        po.open_url('http://localhost:8080/login')
        po.username()
        po.password()
        po.login()

if __name__ == '__main__':
    unittest.main()


















































































